package 封装作业;

import java.util.Scanner;

public class Sanjiao_two {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        Sanjaio sj= new Sanjaio();
        System.out.println("判断是不是直角三角形");
        System.out.println("请输入第一条边");
        sj.a=sc.nextDouble();
        System.out.println("请输入第2条边");
        sj.b=sc.nextDouble();
        System.out.println("请输入第3条边");
        sj.c=sc.nextDouble();
        sj.zhijiao();
        System.out.println("判断是不是等腰三角形");
        System.out.println("请输入第一条边");
        sj.a=sc.nextDouble();
        System.out.println("请输入第2条边");
        sj.b=sc.nextDouble();
        System.out.println("请输入第3条边");
        sj.c=sc.nextDouble();
        sj.dengyao();

        System.out.println("判断是不是等边三角形");
        System.out.println("请输入第一条边");
        sj.a=sc.nextDouble();
        System.out.println("请输入第2条边");
        sj.b=sc.nextDouble();
        System.out.println("请输入第3条边");
        sj.c=sc.nextDouble();
        sj.dengbian();

        System.out.println("求周长");
        System.out.println("请输入第一条边");
        sj.a=sc.nextDouble();
        System.out.println("请输入第2条边");
        sj.b=sc.nextDouble();
        System.out.println("请输入第3条边");
        sj.c=sc.nextDouble();
        double zhouchang=sj.zhouchang();
        System.out.println("周长是"+zhouchang);

    }
}
